<%-- 
    Document   : NUsuarioAcceso
    Created on : 24-oct-2013, 21:19:51
    Author     : pavel
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <link rel="shortcut icon" href="./imagenes/LOGO-PTRSYSTEM.ico" type="image/x-icon"/>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta http-equiv="Expires" content="0"/>
        <meta http-equiv="Pragma" content="no-cache"/>  
        <link rel="stylesheet" type="text/css" href="/RegCivil/css/estilos.css">
        <title>Sistema de Registros Civile - Administrador</title>
        <script type="text/javascript">
            {
                if(history.forward(1))
                location.replace(history.forward(1))
            }
        </script>
        <script language="JavaScript">
            function BuscaDatos(sel) 
            {
                if (sel.value=="1")
                {
                     divD = document.getElementById("dni");
                     divD.style.display="";
                     
                     divDD = document.getElementById("datos");
                     divDD.style.display = "none";
                }
                else
                {
                     divDD = document.getElementById("datos");
                     divDD.style.display = "";
                     
                     divD = document.getElementById("dni");
                     divD.style.display="none";
                }
            }
        </script>
    </head>
<body>
        <table align="center" border="0" cellspacing="0" cellpadding="0" style="margin-top:20px;width: 880px;text-align: center;" class="contacto">
            <tr><td> 
                    <div>
                    <fieldset style="alignment-baseline: central;margin-left: auto;
                              margin-right: auto;background-color: #ffffff; border-color: #f8ac22" >
                        <legend style="border: 1px solid #dce0e3;background-color: #ffffff; font-size: 1.2em; border-color: #f8ac22">
                            REGISTRAR NUEVO USUARIO ACCESO</legend>
                        <table border="0">
                            <tr>
                                <td>
                                    <form action="${pageContext.request.contextPath}/MantenimientoListas" method="">
                                        <table border="0">
                                            <tr>
                                                <td><label style="width:120px;text-align: right;padding-right: 10px;"/>Forma De Busqueda </td>
                                                <td>
                                                    <div>
                                                    <select onchange="BuscaDatos(this)" name="Tbus" style="padding: 7px 6px;
                                                        width: 170px;
                                                        border: 1px solid #CED5D7;
                                                        resize: none;
                                                        box-shadow:0 0 0 3px #EEF5F7;
                                                        margin: 5px 0;
                                                        text-transform: uppercase;">
                                                        <option value="0" selected="0">Tipo de Busqueda</option>
                                                        <option value="1">DNI</option>
                                                        <option value="2">Datos Personales</option>
                                                    </select>
                                                    </div>
                                                </td>
                                                <td><button value='BuscaListaNac' name="btn1" id="BtonNac" style="width: 160px; height: 40px;background-color:#f8f8f8"><img src="/RegCivil/imagenes/buscar.png">Buscar</button></td>
                                                <td colspan="2">
                                                    <button type=button onclick="JavaScript:location.href='/RegCivil/mantenimiento/Admin-Manto.jsp';" style='width:12.0em; heigth:10em; background-color: #eeeeee;border: 1px solid #9cafff;border-radius: 7px 7px 7px 7px;'><img src='/RegCivil/imagenes/return.png' width="25px">Retornar</button>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="6">
                                                <div id="dni" style="display:none;">
                                                    <table border="0">
                                                        <tr>
                                                                    <td><label style="width:100px ;text-align: right;padding-right: 40px;"/>Numero de DNI</td>
                                                                    <td>
                                                                        <input type='text' name='cui' id='txt_ncui' style='width:100px;' maxlength="8">
                                                                    </td>
                                                        </tr>
                                                    </table>
                                                </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="6">
                                                <div id="datos" style="display:none;">
                                                    <table border="0">
                                                        <tr>
                                                            <td><label style="width:120px;text-align: right;padding-right: 10px;"/>Primer Apellido</td>
                                                            <td><input type='text' name='PApe' id='txt_PapePat'  style='width:100px;'></td>
                                                            <td><label style="width:120px;text-align: right;padding-right: 10px;"/>Segundo Apellido</td>
                                                            <td><input type='text' name='Sape' id='txt_Sape'  style='width:100px;'></td>
                                                            <td><label style="width:100px;text-align: right;padding-right: 10px;"/>PreNombre(s)</td>
                                                            <td><input type='text' name='Pnom' id='txt_Pnom'  style='width:100px;border: 1px solid #fdfbf5'></td>
                                                        </tr>
                                                    </table>
                                                </div>
                                              </td>
                                            </tr>
                                            </tr>
                                            <td>
                                                <label></label>
                                            </td>
                                            <tr>
                                        </table>
                                        <hr style="height: 1px;background-color: #f8ac22;border: 0px solid">
                                        <table>
                                            <tr>
                                                <td><label style="width:120px;text-align: right;padding-right: 10px;"/>Primer Apellido</td>
                                                <td><input type='text' name='PApe' id='txt_PapePat'  style='width:100px;'></td>
                                                <td><label style="width:120px;text-align: right;padding-right: 10px;"/>Segundo Apellido</td>
                                                <td><input type='text' name='Sape' id='txt_Sape'  style='width:100px;'></td>
                                                <td><label style="width:100px;text-align: right;padding-right: 10px;"/>PreNombre(s)</td>
                                                <td><input type='text' name='Pnom' id='txt_Pnom'  style='width:100px;border: 1px solid #fdfbf5'></td>
                                            </tr>
                                        </table>
                                     </form>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <%String msj=(String)request.getAttribute("msj");
                                   if(msj!=null)
                                   {
                                            if(msj=="1"){%>
                                            <div>
                                                <fieldset style="border-radius: 10px 10px 10px 10px; background-color: #fff5f6;border:1px solid #f57269">
                                                    <legend style="border-radius: 10px 10px 10px 10px; background-color: #fff5f6;border:1px solid #f57269"><img src="/RegCivil/imagenes/exclamation.png"> </legend>
                                                    <label>Error! verifique los datos ingresados</label>
                                                </fieldset>
                                            </div>
                                            <%}%>
                                    <%}else{%>
                                    <div>
                                        <fieldset style="border-radius: 10px 10px 10px 10px; background-color: #fffbe7;border:1px solid #ffe954">
                                            <label style="color:#edd00c; font-size: 1.0em ">Informacion de Almacenamiento</label>
                                        </fieldset>
                                    </div>
                                    <%}%>
                                    </td>
                            </tr>
                        </table>
                    </fieldset>
                  </div>
                </td>
            </tr>
            <tr><td>
                </td>
                </tr>
        </table>
    </body>
</html>
